

/**
 * @description 表单的模板数据
 * 
 */
const addDeaultData = {
  "version": "001",
  base: {
    okText: "提交",
    cancelText: "返回",
  },
  box: {
    layout: "horizontal",

  },
  addform: {
    base: {
      layout: "horizontal",
      labelFlag: true,
      colonFlag: true
    },

  },
  "css": `
/*boxstart*/
.add-modal .ant-modal-content {
  position: relative;
  background-color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin: 0 auto;
  max-width: 1150px;
  min-width: 720px;
}

/*boxend*/
/*headerstart*/
.add-modal .ant-modal-header {}

/*headerend*/
/*header_titlestart*/
.add-modal .ant-modal-title {}

/*header_titleend*/
/*close_iconstart*/
.add-modal .ant-modal-close {}

.add-modal .ant-modal-close:hover {}

/*close_iconend*/
/*footerstart*/
.add-modal .ant-modal-footer {
  text-align: left;
  background: transparent;
  margin: 12px 0 0 0;
  padding: 20px 0 20px 40px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
}

/*footerend*/
/*formstart*/
.add-modal .addform {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 20px 0 0 0;
  background: none;
}

/*formend*/
/*addform_itemstart*/
.addform .ant-form-item {
  display: inline-block;
  margin: 0 20px 24px 0;
  padding: 0;
  width: calc(50% - 20px);
  height: auto;
}

/*addform_itemend*/
/*addform_labelstart*/
.addform .ant-form-item .ant-form-item-label>label {
  width: 120px;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

/*addform_labelend*/
/*addform_inputstart*/
.addform .ant-input-affix-wrapper {
  height: auto;
  width: 100%;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

.addform .ant-input-affix-wrapper:focus-within {
  border: 1px solid #4096ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

/*addform_inputend*/
/*addform_input_iconstart*/
.addform .ant-input-affix-wrapper .anticon {
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.addform .ant-input-affix-wrapper .anticon:hover {
  color: rgba(0, 0, 0, 0.88);
}

/*addform_input_iconend*/
/*addform_input_disablestart*/
.addform .ant-form-item .ant-input-affix-wrapper.ant-input-disabled,
.addform .ant-form-item .ant-input-number.ant-input-number-disabled,
.addform.ant-form .ant-form-item .ant-select.ant-select-outlined.ant-select-disabled .ant-select-selector,
.addform .ant-form-item .ant-picker.ant-picker-disabled {
  color: rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.04);
  border-color: #d9d9d9;
}

/*addform_input_disableend*/
/*addform_input_placeholderstart*/
.addform .ant-form-item input::placeholder,
.addform .ant-form-item .ant-select-selection-placeholder {
  font-size: inherit;
  color: rgba(0, 0, 0, 0.25);
}

/*addform_input_placeholderend*/
/*addform_input_errorstart*/
.addform .ant-form-item .ant-input-outlined.ant-input-status-error {
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #ff4d4f;
}

/*addform_input_errorend*/
/*addform_numberstart*/
.addform .ant-input-number {
  width: 90px;
  height: auto;
  line-height: 1.5714285714285714;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  border-radius: 6px;
}

.addform .ant-input-number:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  outline: 0;
  background: #ffffff;
}

/*addform_numberend*/
/*addform_number_icon_boxstart*/
.addform .ant-input-number .ant-input-number-handler-wrap {
  width: 22px;
  height: 100%;
  background: #ffffff;
  border-start-end-radius: 6px;
  border-end-end-radius: 6px;
}

/*addform_number_icon_boxend*/
/*addform_number_icon_upstart*/
.addform .ant-input-number .ant-input-number-handler-up {
  color: rgba(0, 0, 0, 0.45);
  border-inline-start: 1px solid #d9d9d9;
  border-start-end-radius: 6px;
}

/*addform_number_icon_upend*/
/*addform_number_icon_downstart*/
.addform .ant-input-number .ant-input-number-handler-down {
  color: rgba(0, 0, 0, 0.45);
  border-inline-start: 1px solid #d9d9d9;
  border-block-start: 1px solid #d9d9d9;
  border-end-end-radius: 6px;
}

/*addform_number_icon_downend*/
/*addform_selectstart*/
.addform.ant-form .ant-form-item .ant-select.ant-select-outlined .ant-select-selector {
  height: auto;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

.addform.ant-form .ant-form-item .ant-select.ant-select-outlined .ant-select-selector:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  outline: 0;
}

/*addform_selectend*/
/*addform_select_iconstart*/
.addform .ant-select .ant-select-arrow {
  position: absolute;
  top: 50%;
  height: 12px;
  margin: -6px 0 0 0;
  font-size: inherit;
  color: rgba(0, 0, 0, 0.25);
}

/*addform_select_iconend*/
/*addform_datestart*/
.addform .ant-form-item .ant-picker {
  height: auto;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  padding: 4px 11px 4px;
  border-radius: 6px;
}

.addform .ant-form-item .ant-picker:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  background-color: #ffffff;
}

/*addform_dateend*/
/*addform_date_iconstart*/
.addform .ant-picker .ant-picker-suffix,
.addform .ant-picker .ant-picker-clear {
  flex: none;
  margin: 0 0 0 4px;
  font-size: inherit;
  color: rgba(0, 0, 0, 0.25);
}

/*addform_date_iconend*/
/*addform_textareastart*/
.addform textarea.ant-input {
  height: auto;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  background: #ffffff;
  max-width: 100%;
  min-height: 32px;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
}

.addform textarea.ant-input:focus-within {
  border: 1px solid #4096ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  background: #ffffff;
}

/*addform_textareaend*/
/*addform_facestart*/
.addform .ant-form-item .face-btn {
  color: #1677ff;
  font-size: 14px;
  line-height: 1.5714285714285714;
  height: 24px;
  padding: 0px 7px;
  border-radius: 0;
}

.addform .ant-form-item .face-btn:hover {
  color: #69b1ff;
  background: transparent;
}

/*addform_faceend*/
/*addform_fileuploadstart*/
.addform .ant-form-item .ant-upload-wrapper .ant-upload.ant-upload-select {
  font-size: 14px;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
}

.addform .ant-form-item .ant-upload-wrapper .ant-upload.ant-upload-select:hover {
  border-color: #1677ff;
}

/*addform_fileuploadend*/
/*addform_qlstart*/
.addform .quill {
  background: none;
}

/*addform_qlend*/
/*addform_ql_headerstart*/
.addform .ql-toolbar.ql-snow {
  border: 1px solid #ccc;
  background: none;
}

/*addform_ql_headerend*/
/*addform_ql_containerstart*/
.addform .ql-container.ql-snow {
  border: 1px solid #ccc;
}

/*addform_ql_containerend*/
/*addform_smsbtnstart*/
.addform .ant-form-item .email-btn {
  height: 32px;
  width: auto;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  margin: 0px 0px 0px 10px;
  background: #ffffff;
  border-color: #d9d9d9;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.addform .ant-form-item .email-btn:hover {
  color: #4096ff;
  border-color: #4096ff;
  background: #ffffff;
}

/*addform_smsbtnend*/
/*ok_btnstart*/
.add-modal .ant-modal-footer>button:nth-child(2) {}

.add-modal .ant-modal-footer>button:nth-child(2):hover {}

/*ok_btnend*/
/*cancel_btnstart*/
.add-modal .ant-modal-footer>button:nth-child(1) {}

.add-modal .ant-modal-footer>button:nth-child(1):hover {}

/*cancel_btnend*/
.add-modal {

  .ant-modal-header {
    background: var(--btn2-bg-color-);
    border-radius: 8px 8px 0 0;
    margin-bottom: 8px;
    padding: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ant-modal-title {
    color: var(--btn2-font-color-);
    font-size: 20px;
  }

  /* 图标 */
  .ant-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    color: #fff;
    background: transparent;
    border-radius: 4px;

    &:hover {
      color: #FFF;
      background: #454a52;
    }
  }
}


/* 富文本 */
.addform .quill-item {
  width: 100%;
  padding-right: 20px;
}

/* 多行文本 */
.addform .ant-form-item:has(textarea) {
  width: 100%;
  padding-right: 20px;
}


.add-modal .ant-modal-footer {

  /* 提交按钮 */
  &>button:nth-child(2) {
    width: auto;
    height: 32px;
    font-size: 14px;
    margin: 0;
    padding: 4px 15px;
    line-height: 1.5714285714285714;
    border-radius: 6px;
    border: 1px solid #d9d9d9;

    color: var(--btn2-font-color-);
    background: var(--btn2-bg-color-);

    &:hover {
      color: var(--btn2-font-hover-color-);
      border: 1px solid var(--btn2-bg-hover-color-);
      background: var(--btn2-bg-hover-color-);
    }
  }

  &>button:nth-child(1) {
    /* 返回按钮 */
    font-size: 14px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);

    color: var(--btn-font-color-);
    background: var(--btn-bg-color-);

    &:hover {
      color: var(--btn2-bg-color-);
      border: 1px solid var(--btn2-bg-color-);
      background: var(--btn-bg-hover-color-);
    }
  }
}
  `,
}

export default addDeaultData